package com.iot.openfeignblock;

import com.dc3.common.bean.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author 咕唧
 * @Date 2022/7/15 20:49
 * @Version 1.0
 */
@FeignClient(value = "iot-auth")
public interface UserClient {
    @GetMapping("/user/info/{id}")
    R findById(@PathVariable String id);


    @PostMapping("/user/list")
    R findByIdIn(@RequestBody List<String> ids) ;

    @GetMapping("/token/check")
    R checkToken(@RequestParam String token);
}
